public class test1 {
    static void main() {
        double area1 =getArea(5,3);
        double area2 =getArea(2,3);
        if(area1<area2){
            System.out.println("第二个长方形面积更大");
        }else {
            System.out.println("第一个长方形面积更大");
        }


    }public static  double getArea(double length, double width ) {
        double area = length * width;
        return area;


    }
}
